<?php

$route->any('test', 'TestController@index');
$route->any('login', 'AuthController@login')->middleware('verify.sign'); //
$route->any('fake/login', 'AuthController@fakeLogin');
$route->any('fake/uid', 'UserController@fake_uid');
$route->any('lbs/city', 'LbsController@city');

$route->any('circle/index', 'CircleController@index');
$route->any('circle/info', 'CircleController@info');


$route->any('user/index', 'UserController@index');
$route->any('user/info', 'UserController@info');

$route->any('article/index', 'ArticleController@index');
$route->any('article/rec', 'ArticleController@rec');
$route->any('article/info', 'ArticleController@info');
$route->any('article/read/store', 'ArticleController@readStore');
$route->any('comment/index', 'CommentController@index');

$route->get('banner/index', 'BannerController@index');

$route->get('animal/index', 'AnimalController@index');
$route->any('animal/info', 'AnimalController@info');
$route->any('qrcode', 'QrcodeController@store');

$route->any('category/index', 'CategoryController@index');
$route->any('share/store', 'ShareController@store');

$route->any('circle/category/index', 'CircleCategoryController@index');

$route->any('notify/unread/num', 'NotificationController@unReadNum');

$route->any('image/classify', 'BaiDuController@imageClassify');
$route->any('image/classify/circle', 'BaiDuController@matchCircleList');

$route->get('dialog/info', 'HomepageDialogController@info');
$route->any('dialog/store', 'HomepageDialogController@store');

$route->any('voice/translate/store', 'VoiceTranslateController@store');

//product
$route->get('product/index', 'ProductController@index');
$route->get('product/info', 'ProductController@info');

//pv
$route->any('pv/increment', 'ConfigController@pv');

$route->group(['middleware' => ['api.auth']], function ($route) {

    //safe
    $route->any('safe/check', 'SafeController@check');

    $route->any('article/store', 'ArticleController@store');
    $route->any('article/destroy', 'ArticleController@destroy');
    //不敢兴趣
    $route->any('not/interest', 'ArticleController@notInterest');

    $route->any('circle/store', 'CircleController@store')->middleware('verify.sign');

    $route->any('circle/join', 'CircleController@join')->middleware('verify.sign');

    $route->any('animal/store', 'AnimalController@store')->middleware('verify.sign');
    $route->any('animal/destroy', 'AnimalController@destroy');

    $route->any('user/store', 'UserController@store');

    //focus
    $route->any('focus/store', 'FocusController@store')->middleware('verify.sign');

    $route->any('comment/store', 'CommentController@store')->middleware('verify.sign');
    $route->any('comment/destroy', 'CommentController@destroy');
    $route->any('comment/test', 'CommentController@test');

    //star
    $route->any('star/store', 'StarController@store')->middleware('verify.sign');

    //notify
    $route->any('notify/index', 'NotificationController@index');

    //举报
    $route->any('report/store', 'ReportController@store');
    //订阅
    $route->any('subscribe/store', 'SubscribeController@store');

    //sign
    $route->any('sign/index', 'UserSignController@index');
    $route->any('sign/store', 'UserSignController@store')->middleware('verify.sign');

    $route->any('address/index', 'AddressController@index');
    $route->any('address/store', 'AddressController@store');
    $route->any('address/info', 'AddressController@info');
    $route->any('address/destroy', 'AddressController@destroy');

    //兑换商城
    $route->any('order/store', 'OrderController@store');
    $route->any('order/index', 'OrderController@index');


    $route->any('balance/task', 'BalanceController@task');

});